package cn.itsource.config;

import cn.itsource.common.NoScan;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@NoScan //这是一个空标签，是用来防止@SpringBootApplication 扫描到该类
public class RibbonConfig {

    @Bean
    public IRule randomRule(){
        return new RandomRule();
    }
}